<?php

namespace App\VO\UserCoupon\MetaInfo;

use App\BO\PropertyAccessAndSetBO;
use App\Entities\CouponCodeEntity;

class UserCouponFactory
{
    /**
     * @param CouponCodeEntity $couponCodeEntity
     * @return CouponInfo
     */
    public static function getCouponInfo(CouponCodeEntity $couponCodeEntity)
    {
        $couponInfo = new CouponInfo();
        PropertyAccessAndSetBO::sync($couponCodeEntity, $couponInfo);
        return $couponInfo;
    }

}
